﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AMS.LINQ
{
    public static class Common
    {
        static AnalysisMethodGroupTableDataContext analysisMethodGroupTableDataContext = new AnalysisMethodGroupTableDataContext();
        static AnalysisMethodTableDataContext analysisMethodTableDataContext = new AnalysisMethodTableDataContext();
        static RequestTableDataContext requestTableDataContext = new RequestTableDataContext();
        static PackagingTableDataContext packagingTableDataContext = new PackagingTableDataContext();
        static RequestorTableDataContext requestorTableDataContext = new RequestorTableDataContext();
        static StatusTableDataContext statusTableDataContext = new StatusTableDataContext();
        static Request_AnalysisMethodTableDataContext request_AnalysisMethodDataContext = new Request_AnalysisMethodTableDataContext();

        public static AnalysisMethodTableDataContext AnalyseMethod()
        {
            return analysisMethodTableDataContext;
        }

        public static AnalysisMethodGroupTableDataContext AnalyseMethodGroup()
        {
            return analysisMethodGroupTableDataContext;
        }

        public static RequestTableDataContext Request()
        {
            return requestTableDataContext;
        }

        public static PackagingTableDataContext Packaging()
        {
            return packagingTableDataContext;
        }

        public static RequestorTableDataContext Requestor()
        {
            return requestorTableDataContext;
        }

        public static StatusTableDataContext Status()
        {
            return statusTableDataContext;
        }

        public static Request_AnalysisMethodTableDataContext Request_AnalysisMethod()
        {
            return request_AnalysisMethodDataContext;
        }
    }
}
